package com.ruoyi.xyq.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xyq.mapper.GeoxyqMapper;
import com.ruoyi.xyq.domain.Geoxyq;
import com.ruoyi.xyq.service.IGeoxyqService;

/**
 * 距离Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@Service
public class GeoxyqServiceImpl implements IGeoxyqService 
{
    @Autowired
    private GeoxyqMapper geoxyqMapper;

    /**
     * 查询距离
     * 
     * @param id 距离主键
     * @return 距离
     */
    @Override
    public Geoxyq selectGeoxyqById(Long id)
    {
        return geoxyqMapper.selectGeoxyqById(id);
    }

    /**
     * 查询距离列表
     * 
     * @param geoxyq 距离
     * @return 距离
     */
    @Override
    public List<Geoxyq> selectGeoxyqList(Geoxyq geoxyq)
    {
        return geoxyqMapper.selectGeoxyqList(geoxyq);
    }

    /**
     * 新增距离
     * 
     * @param geoxyq 距离
     * @return 结果
     */
    @Override
    public int insertGeoxyq(Geoxyq geoxyq)
    {
        return geoxyqMapper.insertGeoxyq(geoxyq);
    }

    /**
     * 修改距离
     * 
     * @param geoxyq 距离
     * @return 结果
     */
    @Override
    public int updateGeoxyq(Geoxyq geoxyq)
    {
        return geoxyqMapper.updateGeoxyq(geoxyq);
    }

    /**
     * 批量删除距离
     * 
     * @param ids 需要删除的距离主键
     * @return 结果
     */
    @Override
    public int deleteGeoxyqByIds(Long[] ids)
    {
        return geoxyqMapper.deleteGeoxyqByIds(ids);
    }

    /**
     * 删除距离信息
     * 
     * @param id 距离主键
     * @return 结果
     */
    @Override
    public int deleteGeoxyqById(Long id)
    {
        return geoxyqMapper.deleteGeoxyqById(id);
    }
}
